package com.group.medical.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 我的药品
 * @TableName tb_user_drug
 */
@TableName(value ="tb_user_drug")
@Data
public class UserDrug implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 药品ID
     */
    @TableField(value = "medication_id")
    private String medicationId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 药品名称
     */
    @TableField(value = "medication_name")
    private String medicationName;

    /**
     * 计量 mg
     */
    @TableField(value = "dosage")
    private String dosage;

    /**
     * 一日几次
     */
    @TableField(value = "frequency")
    private Integer frequency;

    /**
     * 用药开始时间
     */
    @TableField(value = "start_date")
    private Date startDate;

    /**
     * 用药结束时间
     */
    @TableField(value = "end_date")
    private Date endDate;

    /**
     * 备注
     */
    @TableField(value = "notes")
    private String notes;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}